package com.mingqijia.gassafety.shared.constant;

import lombok.Getter;
import lombok.RequiredArgsConstructor;

@Getter
@RequiredArgsConstructor
public enum BizTypeEnum {

    BIZ_TYPE_0("0", "其他"),
    BIZ_TYPE_1("1", "安装单"),
    BIZ_TYPE_2("2", "报警处理"),
    BIZ_TYPE_3("3", "故障处理");

    private final String status;
    private final String name;

    public static String getStateName(String status) {
        if (status == null) {
            return null;
        }
        for (BizTypeEnum mbpStateEnum : BizTypeEnum.values()) {
            if (mbpStateEnum.status.equals(status)) {
                return mbpStateEnum.name;
            }
        }
        return null;
}
}